package top.suven.base.http.enums;

/**
 * @ClassName:
 * @Description:
 * @Author aric
 * @Date 2018/5/29 下午4:10
 * @Copyright: (c) 2018 gc by https://www.gc.com.cn/
 * @Version : 1.0.0
 * --------------------------------------------------------
 * modifyer    modifyTime                 comment
 * <p>
 * --------------------------------------------------------
 */
public enum TasteApplyEnumType {
    FIRST("0", "首次"), NOT_FIRST("1","再次"), THIRD_NOT_FIRST("2", "第三方登录");
    String value;
    String name;
    public String getValue() {
        return value;
    }
    public String getName() {
        return name;
    }
    TasteApplyEnumType(String value, String name) {
        this.value = value;
        this.name = name;
    }
    public static TasteApplyEnumType getByValue(int value) {
        for(TasteApplyEnumType typeEnum : TasteApplyEnumType.values()) {
            if(typeEnum.value.equals(value)) {
                return typeEnum;
            }
        }
        throw new IllegalArgumentException("No element matches " + value);
    }

}
